#include <Vehicle.h>
Inheritance diagram for Vehicle:

Public Member Functions | |
| Vehicle () | |
| Vehicle (string pathname, float scale) | |
| void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | deletePath () |
| Path * | getPath () |
| void | setPath () |
| void | hidePath (osg::ref_ptr< osg::Group > root) |
| void | displayPath (osg::ref_ptr< osg::Group > root) |
| void | drawPath (osg::ref_ptr< osg::Group > root) |
| void | reload (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | setWheels (osg::ref_ptr< osg::Group > root) |
| void | setPositionAll (float x, float y, float z) |
Public Attributes | |
| Wheel | wheelObjects [4] |
Private Attributes | |
| Path | path |
Definition at line 5 of file Vehicle.h.
|
|
A constructor. default constructor. Definition at line 1 of file Vehicle.cpp. References OSGWindows::getFrames(), TraffEduObject::objectGeode, TraffEduObject::objectGroup, TraffEduObject::objectPAT, TraffEduObject::objectPATvector, osgwind, TraffEduObject::setObjectType(), OSGWindows::sizeOfFrames(), and VEHICLE. |
|
||||||||||||
|
A constructor.
Definition at line 18 of file Vehicle.cpp. References OSGWindows::getFrames(), TraffEduObject::objectGeode, TraffEduObject::objectGroup, TraffEduObject::objectPAT, TraffEduObject::objectPATvector, osgwind, TraffEduObject::setObjectType(), OSGWindows::sizeOfFrames(), and VEHICLE. |
|
|
a normal member . delete the path of the vehicle Definition at line 68 of file Vehicle.cpp. References Path::deletePart(), and path. Referenced by AnimationWindow::exit(). |
|
|
a normal member .
Definition at line 55 of file Vehicle.cpp. References TraffEduObject::display(), and path. |
|
||||||||||||
|
a normal member taking two arguments.
Implements TraffEduObject. Definition at line 38 of file Vehicle.cpp. References TraffEduObject::addTree(), TraffEduObject::isBeforeCreated, TraffEduObject::modelPath, TraffEduObject::modelScale, TraffEduObject::objectGroup, TraffEduObject::returnNode(), TraffEduObject::setScale(), and TraffEduObject::viewMode. |
|
|
a normal member .
Definition at line 59 of file Vehicle.cpp. References Path::draw(), and path. |
|
|
a normal member .
Definition at line 65 of file Vehicle.cpp. References path. Referenced by createAnimationPath(), AnimationWindow::createControlPoints(), AnimationWindow::createRotationArray(), and CarPhysics::mySetPosition(). |
|
|
a normal member .
Definition at line 52 of file Vehicle.cpp. References TraffEduObject::hide(), and path. |
|
||||||||||||
|
a normal member taking two arguments .
Definition at line 72 of file Vehicle.cpp. References TraffEduObject::modelScale, TraffEduObject::objectGroup, TraffEduObject::objectPAT, TraffEduObject::resetModelPath(), TraffEduObject::returnNode(), TraffEduObject::setScale(), and setWheels(). Referenced by AnimationWindow::exit(). |
|
|
Setter for the Path. Definition at line 62 of file Vehicle.cpp. |
|
||||||||||||||||
|
a normal member .
Definition at line 109 of file Vehicle.cpp. References osgwind, and OSGWindows::sizeOfFrames(). Referenced by CommandInsertVehicle::CommandInsertVehicle(). |
|
|
a normal member .
Definition at line 96 of file Vehicle.cpp. References Wheel::draw(), TraffEduObject::modelPath, TraffEduObject::modelScale, TraffEduObject::resetModelPath(), TraffEduObject::setModelPath(), TraffEduObject::setModelScale(), and wheelObjects. Referenced by reload(). |
|
|
Definition at line 9 of file Vehicle.h. Referenced by deletePath(), displayPath(), drawPath(), getPath(), and hidePath(). |
|
|
a public variable. vehicle has wheel objects, which are initiated at the begining of animation. Definition at line 35 of file Vehicle.h. Referenced by setWheels(). |
1.4.6-NO